package org.ala.tiktools.rpc.kcp.netty;

import io.netty.channel.ChannelOption;

/**
 * @author <a href="mailto:szhnet@gmail.com">szh</a>
 */
public final class KcpChannelOption<T> extends ChannelOption<T> {

    public static final ChannelOption<Boolean> KCP_NODELAY =
            valueOf(KcpChannelOption.class, "KCP_NODELAY");

    public static final ChannelOption<Integer> KCP_INTERVAL =
            valueOf(KcpChannelOption.class, "KCP_INTERVAL");

    public static final ChannelOption<Integer> KCP_FAST_RESEND =
            valueOf(KcpChannelOption.class, "KCP_FAST_RESEND");

    public static final ChannelOption<Integer> KCP_FAST_LIMIT =
            valueOf(KcpChannelOption.class, "KCP_FAST_LIMIT");

    public static final ChannelOption<Boolean> KCP_NOCWND =
            valueOf(KcpChannelOption.class, "KCP_NOCWND");

    public static final ChannelOption<Integer> KCP_MIN_RTO =
            valueOf(KcpChannelOption.class, "KCP_MIN_RTO");

    public static final ChannelOption<Integer> KCP_MTU =
            valueOf(KcpChannelOption.class, "KCP_MTU");

    public static final ChannelOption<Integer> KCP_RCV_WND =
            valueOf(KcpChannelOption.class, "KCP_RCV_WND");

    public static final ChannelOption<Integer> KCP_SND_WND =
            valueOf(KcpChannelOption.class, "KCP_SND_WND");

    public static final ChannelOption<Boolean> KCP_STREAM =
            valueOf(KcpChannelOption.class, "KCP_STREAM");

    public static final ChannelOption<Integer> KCP_DEAD_LINK =
            valueOf(KcpChannelOption.class, "KCP_DEAD_LINK");

    public static final ChannelOption<Boolean> KCP_AUTO_SET_CONV =
            valueOf(KcpChannelOption.class, "KCP_AUTO_SET_CONV");

    public static final ChannelOption<Boolean> KCP_FAST_FLUSH =
            valueOf(KcpChannelOption.class, "KCP_FAST_FLUSH");

    public static final ChannelOption<Boolean> KCP_MERGE_SEGMENT_BUF =
            valueOf(KcpChannelOption.class, "KCP_MERGE_SEGMENT_BUF");

    @SuppressWarnings("deprecation")
    private KcpChannelOption() {
        super(null);
    }

}
